package com.xingu.xg.common.entity.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author luo
 */
@ToString
@Data
public class CopyNodeQuery {

    @ApiModelProperty(value = "选中节点ID")
    @NotNull(message = "{selected.node.id.cannot.be.empty}")
    private String selectedId;

    @ApiModelProperty("复制的节点")
    @Valid
    List<CopyNode> list;

    @ToString
    @Data
    public static class CopyNode {

        @ApiModelProperty("原节点ID")
        @NotNull(message = "原ID不能为空")
        private String originalId;

        @ApiModelProperty("原父级节点ID")
        private String originalParentId;
    }
}